<?php
header ("Content-Type: application/force-download");
header("Pragma: ");
header("Content-Description: File Transfer"); 
header('Cache-control: ');
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Content-type: application/pdf");
header("Content-disposition: attachment; filename='CronogramaFondo.pdf'");
?>    
<html>
    <head>
        <title></title>
        <meta http-equiv="content-type" content="application/pdf; charset=utf-8" />
    </head>
    
  
        <div align="center">CRONOGRAMA <b>FONDO <?php  echo $fondo->getSiglasInst();?></b></div><br> 

        <div id="contextual" class="contenedor">
            <div align="left"><br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;SECRETAR&Iacute;A NACIONAL DE EDUCACI&Oacute;N SUPERIOR, CIENCIA, TECNOLOG&Iacute;A E INNOVACI&Oacute;N</br></div>
            <div align="left"><br>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp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acute;FICA</br></div>
            <div align="left"><br><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;Codigo:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;<?php echo $proyecto->getCodigo() ?></b></br></div>
            <div align="left"><br><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;Proyecto:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;<?php echo $proyecto->getNombre() ?></b></br></div>
            <div align="left"><br><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;Director:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;<?php echo $proyecto->getDirector() ?></b></br></div>
            <div align="left"><br><b>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp;Institucion:&nbsp&nbsp;<?php echo $fondo->getNInst() ?></b></br></div>
            <div id="fondos" align="center">

                <?php 
                foreach ($objetivos as $ob):
                    $this->user = sfContext::getInstance()->getUser()->setAttribute('id_ob', $ob->getIdOb());
                    ?>
                    <div align="left"><br><b>Objetivo:&nbsp&nbsp;<?php echo $ob->getNombre() ?></b></br></div></br>
                    <!--            <div id="fondos" align="center">-->
                    <?php
                    include_partial('tabladinamicacronogramaword');
                    ?>




                    <!--            </div>-->
                    <?php
                endforeach;
                ?>

                <br>

                <table border="1" id="margentabla">

                    <?php
                    include_partial('tablefooter2cronograma');
                    ?>


                </table>

                </body>
                </html>
            </div>

        </div><br>    

        <div align="center">
            <button class="button2 button-green2"><span><div  align="center" class="spritesexportre" id="exportre_jpg" align="center"></div>Exportar_Cronograma</span></button>
            <a href="<?php echo url_for('Reportes/Cronogramas?id_pro=' . $pro) ?>"><button class="button2 button-green2"><span><div align="center"  class="spritesatras" id="atras_jpg" align="center"></div>Regresar a Cronogramas</span></button></a><br><br>
        </div><br><br>
